package com.qf.controller;

import com.qf.service.ResivewService;
import com.qf.utils.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ResivewController
 * @Description
 * @Author lanzhike
 * @Date 2023/7/19 16:34
 * @Version 1.0
 */
@RestController
@RequestMapping("/resivew")
public class ResivewController {
    @Autowired(required = false)
    ResivewService resivewService;

    @GetMapping ("/addResivew")
    public ResultMsg addResivew(int studentId,int courseId,String resviewDesc){
        return resivewService.addResivew(studentId, courseId, resviewDesc);
    }
}
